<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="Keywords" content="SuperSlide,前后图片预览焦点图">
<meta name="Description" content="SuperSlide,前后图片预览焦点图">
<title>前后图片预览焦点图 - SuperSlide</title>
<script type="text/javascript" src="../../jquery1.42.min.js"></script><script type="text/javascript" src="../../jquery.SuperSlide.2.1.js"></script>
</head>
<body>


<style type="text/css">
	/* css 重置 */
	*{margin:0; padding:0; list-style:none; }
	body{ background:#fff; font:normal 12px/22px 宋体; width:100%; }
	img{ border:0;  }
	a{ text-decoration:none; color:#333;  }
	a:hover{ color:#1974A1;  }
	#footer{ text-align:center;  }
	.js{width:90%; margin:10px auto 0 auto; }
	.js p{ padding:5px 0; font-weight:bold; overflow:hidden;  }
	.js p span{ float:right; }
	.js p span a{ color:#f00; text-decoration:underline;   }
	.js textarea{ height:50px;  width:98%; padding:5px; border:1px solid #ccc; border-top:2px solid #aaa;  border-left:2px solid #aaa;  }


	/* 本例子css */
	.slider{ width:630px;  height:338px; padding:0 130px;  margin:0 auto;  position:relative; overflow:hidden; background:#000;  }
	.slider .bd{ position:absolute; left:0; top:0; }
	.slider .bd li{ overflow:hidden; }
	.slider .bd li img{ display:block; width:630px; height:338px;    }
	.slider .tempWrap{ padding:0 130px !important; /* 强制遮罩层显示2侧各130px */   }
	.slider .bd ul{ margin-left:-630px !important;  }
	.slider .pnBtn{ position:absolute; top:0; width:130px; height:338px; cursor:pointer;   }
	.slider .prev{ left:0;  }
	.slider .next{ right:0; }
	.slider .pnBtn .blackBg{ display:block;  position:absolute; left:0; top:0; width:100%; height:338px; background:#000; filter:alpha(opacity=50);opacity:0.5;   }
	.slider .pnBtn .arrow{ display:none; position:absolute; top:0; z-index:1; width:32px; height:338px; _filter:alpha(opacity=70); }
	.slider .prev .arrow{ left:0; background:url(images/left.png) 0 center no-repeat;   }
	.slider .next .arrow{ right:0; background:url(images/right.png) 0 center no-repeat;  }

</style>

	<div class="slider">
		
		<div class="bd">
			<ul>
				<li><a target="_blank" href="http://www.superslide2.com"><img src="images/1.jpg" /></a></li>
				<li><a target="_blank" href="http://www.superslide2.com"><img src="images/2.jpg" /></a></li>
				<li><a target="_blank" href="http://www.superslide2.com"><img src="images/3.jpg" /></a></li>
				<li><a target="_blank" href="http://www.superslide2.com"><img src="images/4.jpg" /></a></li>
			</ul>
		</div>

		<div class="pnBtn prev">
			<span class="blackBg"></span>
			<span class="arrow"></span>
		</div>
		<div class="pnBtn next">
			<span class="blackBg"></span>
			<span class="arrow"></span>
		</div>

	</div>

	<script type="text/javascript">
		/* 把最后一个放到第一个前面，然后通过外层ul{margin-left:-630px !important; }来显示第一个 */
		jQuery(".slider .bd li").first().before( jQuery(".slider .bd li").last() );
		/* 控制左右按钮显示 */
		jQuery(".slider .pnBtn").hover(function(){ jQuery(this).find(".arrow").show() },function(){ jQuery(this).find(".arrow").hide() });
		/* 调用SuperSlide */
		jQuery(".slider").slide({ mainCell:".bd ul", effect:"leftLoop",  autoPlay:true, vis:3, mouseOverStop:false });
	</script>

	<div class="js">
		<p><span>效果参考网址：<a target="_blank" href="http://www.shmds.com/">http://www.shmds.com/</a></span>少量js+单个SuperSlide：</p>
		<textarea style="height:100px;">
/* 把最后一个放到第一个前面，然后通过外层ul{margin-left:-630px !important; }来显示第一个 */
jQuery(".slider .bd li").first().before( jQuery(".slider .bd li").last() );
/* 控制左右按钮显示 */
jQuery(".slider .pnBtn").hover(function(){ jQuery(this).find(".arrow").show() },function(){ jQuery(this).find(".arrow").hide() });
/* 调用SuperSlide */
jQuery(".slider").slide({ mainCell:".bd ul", effect:"leftLoop",  autoPlay:true, vis:3 });
		</textarea>
	</div>

<div id="footer">Copyright ©2011-2013 大话主席 <a target="_blank" href="http://www.superslide2.com">www.superslide2.com</a></div>
</body>
</html>
<script type="text/javascript">
//百度统计代码
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fa630f96b6a9dd549675d26373853f7f1' type='text/javascript'%3E%3C/script%3E"));
</script>

